package com.web.exiaodao.business.service;

import com.web.exiaodao.business.entity.Order;
import com.web.webstart.base.exception.BusinessException;
import com.web.webstart.base.service.BaseServiceInterFace;
import com.web.webstart.base.util.result.XaResult;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface OrderService extends BaseServiceInterFace<Order>{
    /**
     * 订单发货
     * @param modelId 订单ids
     * @param expressCompany 快递公司名称
     * @param expressNumber  快递编号
     * @return
     * @throws BusinessException
     */
    public XaResult<Boolean> sendOrders(
            String[] modelId,
            String expressCompany,
            String expressNumber) throws BusinessException;
    /**
	 * 查询单条Order信息
	 * @return 返回单个Order对象
	 * @throws BusinessException
	 */
	public XaResult<List<Map<String, Object>>> findOneDetial(Long modelId) throws BusinessException;

	//导出多条信息
	public void exportdata(Map<String, Object> filterParams, HttpServletResponse response, String modelIds) throws BusinessException;

	/**
	 * 更新库存
	 * @return
	 * @throws BusinessException
	 */
	void updatetockNum() throws BusinessException;
}
